<?php
/**
 * View AJAX - ASSOCIA Partner A contact LaFabbrica.org
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    17-mag-2011
 * @package    LaFabbrica
 * @copyright  Copyright (c) 2011 Luigi Pastore
 */
?>
<tr class="unselectable" id="partner_<?php echo $this->partner['partner_id'] ?>">
    <th>
        <span><?php echo $this->partner['partner_name'] ?></span>
        <div class="details">
            <h4>
            <?php
            $partner_types = explode( ';', $this->partner['partner_types'] );
            $types = null;
            foreach( $partner_types as $partner_type ):
                $types .= $this->partner_types[$partner_type] .', ';
            endforeach;
            ?>
            <?php echo substr( $types, 0, -2 ) ?>                    
            </h4>
        </div>
    </th>
    <td>
        <ul>
            <li class="complex">
                <span class="left">
                    <label>Ruolo:</label>
                    <select class="field select addr" name="partners[<?php echo $this->partner['partner_id'] ?>][]" id="partner_<?php echo $this->partner['partner_id'] ?>">
                    <?php foreach( $this->contact_roles AS $k => $role ) : ?>
                        <option value="<?php echo $k ?>"><?php echo $role ?></option>
                    <?php endforeach; ?>
                    </select>
                </span>
            </li>
        </ul>
    </td>
    <td title="Operazioni">
        <span class="actions">
            <a class="del" id="unlink-partner-<?php echo $this->partner['partner_id']?>" href="#">
                &nbsp;
            </a>
        </span>
    </td>
</tr>
